<template>
  <div>
    <Filmitem :nowplays="nowplays" :key="nowplays.length"></Filmitem>
  </div>
</template>

<script>
import Filmitem from "../../components/Filmitem";

// 调用api请求数据方法
import { comingsoonListData } from "../../api/api";

export default {
  components:{
    Filmitem
  },
  data() {
    return {
      page: 1,
      // 正在热映数据源
      nowplays: [],
      top: 0,
    };
  },
  async mounted() {
    let ret = await comingsoonListData(this.page)
    this.nowplays = ret.data.data.films;
  },
};
</script>

<style lang='scss' scoped>

</style>
